<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/axios.js"></script>
	</head>
	<body>
		<script>
			axios.defaults.baseURL = "http://localhost:8080"
			
			// axios.get("/web/hello")
			// 	.then( primaise => {
			// 		alert(primaise.data)
			// 	})
			
			async function getHello(){
				// let promise =await axios.get("/web/hello")
				// 	alert(promise.data)
				let {data: result,status: code} = await axios.get("/web/hello")
				alert(result)
				alert(code)
			}
			getHello()
		</script>
	</body>
</html>
